import { Bank, ResPage } from "@/api/interface/index";
import { BANK } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 课程模块
 */

// 获取考试题库列表
export const getBankListApi = (params?: any) => {
  return http.post<any[]>(BANK + `/list`, params);
};

export const getBankInfoApi = (params?: any) => {
  return http.post<any>(BANK + `/info`, params);
};

export const addBankApi = (params?: any) => {
  return http.post<any>(BANK + `/add`, params);
};

export const updateBankApi = (params?: any) => {
  return http.post<any>(BANK + `/update`, params);
};

export const delBankApi = (params?: any) => {
  return http.post(BANK + `/delete`, params);
};
